<template>
  <div class="child1">
    <h1>我是儿子</h1>
    <h1>上辈给的数据：{{ car }}</h1>
    <hr />
    <GrandChild></GrandChild>
  </div>
</template>

<script setup lang="ts">
import GrandChild from "./GrandChild.vue";
import { inject } from "vue";

let car = inject("TOKEN");
console.log(car);
</script>

<style scoped>
.child1 {
  width: 100vw;
  height: 500px;
  background: yellow;
}
</style>
